package com.hualu.xmlCode.service.impl;

import java.util.List;

import com.hualu.xmlCode.dao.AlbumViewDao;
import com.hualu.xmlCode.dao.AppVideosDao;
import com.hualu.xmlCode.dao.FilmsAlbumViewDao;
import com.hualu.xmlCode.dao.OthersAlbumViewDao;
import com.hualu.xmlCode.dao.TvsAlbumViewDao;
import com.hualu.xmlCode.model.AlbumView;
import com.hualu.xmlCode.model.AlbumViewSearchCondition;
import com.hualu.xmlCode.model.AppVideos;
import com.hualu.xmlCode.model.FilmsAlbumView;
import com.hualu.xmlCode.model.OthersAlbumView;
import com.hualu.xmlCode.model.TvsAlbumView;
import com.hualu.xmlCode.service.AlbumViewManager;

public class AlbumViewManagerImpl implements AlbumViewManager {
    
    private AlbumViewDao albumViewDao;
    private FilmsAlbumViewDao filmsAlbumViewDao;
    private TvsAlbumViewDao tvsAlbumViewDao;
    private OthersAlbumViewDao othersAlbumViewDao;
    private AppVideosDao appVideosDao;

    public void setAlbumViewDao(AlbumViewDao albumViewDao) {
        this.albumViewDao = albumViewDao;
    }
    public void setFilmsAlbumViewDao(FilmsAlbumViewDao filmsAlbumViewDao) {
        this.filmsAlbumViewDao = filmsAlbumViewDao;
    }
    public void setOthersAlbumViewDao(OthersAlbumViewDao othersAlbumViewDao) {
        this.othersAlbumViewDao = othersAlbumViewDao;
    }
    public void setTvsAlbumViewDao(TvsAlbumViewDao tvsAlbumViewDao) {
        this.tvsAlbumViewDao = tvsAlbumViewDao;
    }
    public void setAppVideosDao(AppVideosDao appVideosDao) {
        this.appVideosDao = appVideosDao;
    }

    
    public List<AlbumView> getAlbumViewListByCondition(AlbumViewSearchCondition albumViewSearchCondition){
        return this.albumViewDao.getAlbumViewListByCondition(albumViewSearchCondition);
    }
    
    public List<FilmsAlbumView> getFilmsAlbumViewListByCondition(AlbumViewSearchCondition albumViewSearchCondition){
        return this.filmsAlbumViewDao.getFilmsAlbumViewListByCondition(albumViewSearchCondition);
    }
    
    public List<TvsAlbumView> getTvsAlbumViewListByCondition(AlbumViewSearchCondition albumViewSearchCondition){
        return this.tvsAlbumViewDao.getTvsAlbumViewListByCondition(albumViewSearchCondition);
    }
    
    public List<OthersAlbumView> getOthersAlbumViewListByCondition(AlbumViewSearchCondition albumViewSearchCondition){
        return this.othersAlbumViewDao.getOthersAlbumViewListByCondition(albumViewSearchCondition);
    }
    
    public List<AppVideos> getAppVideosList(Integer videoType){
        return this.appVideosDao.getAppVideosList(videoType);
    }
    
    public void saveAppVideos(AppVideos appVideos){
        this.appVideosDao.saveAppVideos(appVideos);
    }
    
    public void delAppVideos(Integer id){
        this.appVideosDao.remove(id);
    }
    
}
